package pers.wensheng.patterns.behavioral_pattern.chain_responsibility_pattern.entity;

import pers.wensheng.patterns.behavioral_pattern.chain_responsibility_pattern.LeaveRequest;

/**
 * 小组长类
 * 具体的处理者
 */
public class GroupLeader extends Handler {


    public GroupLeader(){
        super(0, Handler.NUM_ONE);
    }
    /**
     * 小组长处理请假条的方法
     *
     * @param leave
     */
    @Override
    protected void handlerLeave(LeaveRequest leave) {
        System.out.println(leave.getName()+"请假"+leave.getNumber()+"天"+leave.getContent());
        System.out.println("小组长审批：同意");
    }
}
